home *** CD-ROM | disk | FTP | other *** search
- /*
- * Routine To Save Current File
- * And Assemble Evolution/main_code.s File.
- *
- * By K.McIntosh....
- *
- */
-
-
- asm = 'c:genam work:tosh_stuff/grabber/main_system.s '
- outexe = 'work:current.exe' /* Change This To Your Own Output */
-
- Main:
- signal on ERROR
-
- address 'rexx_ced'
- options results
-
- call close 'STDOUT'
- call close 'STDIN'
- call open 'STDIN','CON:0/0/640/255/Grabber./CLOSE'
- call pragma '*','STDIN'
- call open 'STDOUT','*'
- 'cedtoback'
-
- 'status 19'
- pathfile = result
- say 'filename is' pathfile
-
- 'status 18'
- if result ~= 0 then do
- 'save' pathfile
- say 'saving changes..'
- end
-
- else say 'no changes..'
-
- say 'Assembling Grabber.......'
- address 'COMMAND' asm 'TO' outexe
- say '<ret> to close window'
- pull
- 'cedtofront'
- exit 0
-
- ERROR:
- pull
- 'cedtofront'
- exit 0
-